<%@ page import="java.util.List" %>
<%@ page import="com.XiGuaXiaoMe.dao.DaoSc" %>
<%@ page import="com.XiGuaXiaoMe.dao.courseDao" %>
<%@ page import="com.XiGuaXiaoMe.entity.*" %>
<%@ page import="java.util.Iterator" %><%--

  Created by IntelliJ IDEA.
  User: jl
  Date: 2021/11/10
  Time: 22:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html lang="zh-CN">
<head>
    <meta charset="utf-8" />

    <link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
    <link rel="stylesheet" href="../CSS/css/jquery.paginate.css" />
    <link rel="stylesheet" href="../CSS/css/jquery.yhhDataTable.css" />
    <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="../JS/js/jquery.paginate.js" ></script>
    <script type="text/javascript" src="../JS/js/jquery.yhhDataTable.js" ></script>
    <script type="text/javascript" src="../JS/js/index.js" ></script>
    <link rel="stylesheet" href="../CSS/toPage.css">

    <link rel="stylesheet" href="../font_cqbiizu5og9/iconfont.css">
    <title>自适应导航栏</title>
    <link rel="stylesheet" type="text/css" href="../CSS/导航栏c.css" />
    <link rel="stylesheet" type="text/css" href="../CSS/搜索框样式.css">
    <link rel="stylesheet" type="text/css" href="../CSS/table.css" />
    <link rel="stylesheet" type="text/css" href="../CSS/mainpage.css" />

    <link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,300i,400,400i,700i" rel="stylesheet">


</head>
<body style="padding-bottom:10px;">

<iframe class="obj1" src="head.html" frameborder="0" width="1300px" height="90px" scrolling="no"></iframe>
<div class="shell" style=" background-color: #bb3e03;">
    <a href="${pageContext.request.contextPath}/Teacher/userinformation.jsp" class="box" style="color: #faedcd;" ><i class="iconfont icon-liebiao"></i><span>个人信息</span></a>
    <a href="<%= request.getContextPath()%>/Teacher/selectCou.jsp" class="box" style="color: #faedcd;"><i class="iconfont icon-cangku"></i><span>课程管理</span></a>
    <a href="/MyWeb/Teacher/classes.jsp" class="box"style="color: #faedcd;"><i class="iconfont icon-zhuti_tiaosepan"></i><span>学生成绩管理</span></a>
    <a href="#" class="box" style="color: #faedcd;"><i class="iconfont icon-qianbao"></i><span>已选课程</span></a>
    <a href="#" class="box" style="color: #faedcd;"> <i class="iconfont icon-tupian"></i><span>已选学分</span></a>
    <a href="#" class="box" style="color: #faedcd;"><i class="iconfont icon-erweima"></i><span>院系要求</span></a>
    <a href="<%= request.getContextPath()%>../Student/日历3.html" class="box" style="color: #faedcd;"><i class="iconfont icon-dunpaibaoxianrenzheng"></i><span>日历</span></a>
    <a href="#" class="box" style="color: #faedcd;"><i class="iconfont icon-dengchu"></i><span>退出系统</span></a>
</div>
<section>
    <%
    Teacher teacher = null;
    if(session.getAttribute("teacher")==null){
        response.sendRedirect("/User_Add2.jsp");
    }else {
        teacher = (Teacher) session.getAttribute("teacher");
    }
%>
    <%

        /*courseDao select = new courseDao();*/
        DaoSc select=new DaoSc();
        System.out.println("haha"+request.getParameter("name"));
        Iterator<SC2> list = select.selectSc3(request.getParameter("name")); %>

    <br><br>
       <div > <a href="${pageContext.request.contextPath}/Teacher/classes.jsp"><img src="${pageContext.request.contextPath}/图标/返回.png"></a></div>

       <div class="container">
        <!--分页容器_1-->
<form action="/MyWeb/Teacher/serUpdateSc">
        <table id="testtable1" >`>
                <th>课序号</th>
                <th>课程名称</th>
                <th>学生</th>
                <th>教师</th>
                <th>学生成绩</th>
                <th>操作</th>

            </thead>
            <tbody>
            <%SC2 c=null;
                while(list.hasNext()) {
                    c= list.next();
            %>

            <tr>
                <td><input type="text" name="xuhao" value="<%=c.getXuhao()%>" readonly="true"></td>
                <td><input type="text" name="name" value="<%=c.getName()%>" readonly="true"></td>
                <td><input type="text" name="SNO" value="<%=c.getSNO()%>" readonly="true"></td>
                <td><input type="text"  value="<%=c.getTeacher()%>" readonly="true"></td>
                <td><input type="text" name="score" value="<%=c.getScore()%>" ></td>
                <td><input type="submit" value="保存" ></td>
            </tr>
            <%}%>



            </tbody >
        </table>
</form>

    </div>

</section>

</body>

</html>